using System;

namespace SharpMud.Net.Telnet.MXP.Tokens
{
	internal class PureTextMxpToken : Text.Formatting.BuiltIn.ExactTextInsertion, MXP.IMxpToken
	{
		#region Constructors
		internal PureTextMxpToken(string text)
			:base(text)
		{
		}
		internal PureTextMxpToken(byte[] data, System.Text.Encoding encoding)
			:this(encoding.GetString(data))
		{
		}
		internal PureTextMxpToken(byte[] bytes, int index, int count, System.Text.Encoding encoding)
			:this(encoding.GetString(bytes,index,count))
		{
		}
		#endregion

		#region IMxpToken Members

		public SharpMud.Net.Telnet.MXP.TokenType TokenType
		{
			get
			{
				return TokenType.ExactText;
			}
		}

		#endregion
	}
}
